using System;

namespace Microsoft.Samples.Windows.Forms.Navigation
{
	/// <summary>
	/// Arguments for a Frame's Navigate event.
	/// </summary>
	public class NavigateEventArgs : System.EventArgs
	{
		private Page page;

		/// <summary>
		/// Set the argument's page value to the specified page.
		/// </summary>
		/// <param name="page">The page to which the frame has navigated</param>
		public NavigateEventArgs(Page page)
		{
			this.page = page;
		}

		/// <value>
		/// The new page to which the frame has navigated.
		/// </value>
		public Page Page
		{
			get
			{
				return page;
			}
		}
	}
}
